package com.funlog.designpattern.templatemethod.test1;

public class Client {
    public static void main(String[] args) {

        //坐公交车回家
        MyAbstractClass bus = new Bus();
        bus.comeHomeFromWork();

        System.out.println("=====================================");

        //坐班车回家
        MyAbstractClass shuttleBus = new ShuttleBus();
        shuttleBus.comeHomeFromWork();
    }
}
